package com.yan.domain;

public class Cat {
    private String color;
    private String breed;

    // 无参构造方法


    public Cat() {
    }

    public Cat(String clolor, String breed) {
        this.color = clolor;
        this.breed = breed;
    }

    public String getClolor() {
        return color;
    }

    public void setClolor(String clolor) {
        this.color = clolor;
    }

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }


    public void eat() {
        System.out.println(color + "的" + breed + "正在吃鱼");
    }

    public void catchMouse() {
        System.out.println(color + "的" + breed + "正在逮老鼠");
    }
}